<?php

namespace Biz\Models\Site;

use Biz\Models\Model;

/**
 * SitePaperAbstract.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class SitePaperAbstract extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'site_paper_abstract';

    /**
     * @var array
     */
    protected $fillable = [
        'paper_id',
        'file_url',
        'status',
    ];

    /**
     * 一对一关联论文.
     */
    public function paper()
    {
        return $this->hasOne(SitePaper::class, 'id', 'paper_id');
    }
}
